package heliotrope.net.loader
{
	import heliotrope.global.ErrorHandler;

	public class XMLTarget implements ILoadTarget
	{
		private var _xml:XML;
		public function XMLTarget()
		{
		}
		
		public function get xml():XML
		{
			return _xml;
		}

		public function saveData(data_:Object):void
		{
			CONFIG::debug
			{
				try
				{
					_xml = new XML(data_);
				} 
				catch(error:Error) 
				{
					ErrorHandler.handle(error);
				}
			}
		}
	}
}